<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style/common.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<link type="text/css" rel="stylesheet" href="http://www.rituchina.com//images/index.css">
<title>无标题文档</title>
</head>
<style type="text/css">
li{
    list-style:none;      /*去掉li前的点*/
    margin-left:20px;     /*调整距离*/
    display:none;
}
</style>
<body>
<div id="tr">
    <ul>
       <dl>菜单1</dl>
        <li><a>子菜单1</a></li>
        <li>子菜单2</li>
    </ul>
    <ul>
        <dl>菜单2</dl> 
        <li>子菜单3</li>
        <li>子菜单4</li>
    </ul>
</div>
</body>
<script type="text/javascript">
$(document).ready(function(){
    var as=$("ul>dl");
    as.click(function(){
       //这里需要找到ul中的li，然后让li显示出来
        var aNode=$(this);
        var lis=aNode.nextAll("li");
        //toggle()方法，改变显示状态
        lis.toggle("slow");
    });
});
</script>
</html>
